<?php
$arr = db_find_one('fq_from', array('tid'=>$tid));
if($arr==true){
//print_r($arr);
$fromname=$arr['fromname'];
$fromurl=$arr['fromurl'];
$byname=$arr['byname'];
}else{
$fromname='';
$fromurl='';
$byname='';
}
?>

 <div>
          <fieldset class="form-group">

           <div class="input-group">
            <input type="text" class="form-control" placeholder="来源名称" name="fromname" id="fromname" value="<?php echo $fromname;?>">
            </div>
			
			<div class="input-group">
            <input type="text" class="form-control" placeholder="来源网址" name="fromurl" id="fromurl" value="<?php echo $fromurl;?>">
            </div>
			
			<div class="input-group"> 
            <input type="text" class="form-control"  placeholder="来源作者" name="byname" id="byname" value="<?php echo $byname;?>">
            </div>

          </fieldset>

      </div>